<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<script type="text/javascript">
	function jump(p){
		if(isNaN(p)){
			alert("请输入有效的数字,才能进行跳转!!");
			return;
		}
		window.location.href = "/lms/user/show.action?currentPage="+p;
	}
</script>
<table border="1" align="center" style="border-collapse:collapse; width:800px; text-align:center;">
			<tr>
				<td>
					第<span style="color:red;"><s:property value="bp.currentPage"/></span>/<s:property value="bp.totalPages"/>页
					&nbsp;&nbsp;&nbsp;共<span style="color:red;"><s:property value="bp.totalRecord"/></span>条记录
				</td>
				<td>
				<s:if test="bp.currentPage != 1">
					<a href="javascript:void(0)" onclick="jump(1);">首页</a>
					<a href="javascript:void(0)" onclick="jump(<s:property value="currentPage-1"/>);">上一页</a>
				</s:if>
				<s:else>
					首页 上一页
				</s:else>
				<s:if test="bp.currentPage eq bp.totalPages">
					下一页  尾页
				</s:if>
				<s:else>
					<a href="javascript:void(0)" onclick="jump(<s:property value="bp.currentPage+1"/>);">下一页</a>
					<a href="javascript:void(0)" onclick="jump(<s:property value="bp.totalPages"/>);">尾页</a>
				</s:else>
					转到<input type="text" style="width:30px;" id="pageSize" value="<s:property value="bp.currentPage"/>" />
						<input type="button" value="GO" onclick="jump(document.getElementById('pageSize').value);" />
				</td>
			</tr>
</table>